/*
@filename: onPlayerRespawn.sqf
Author:
	
	Quiksilver

Last modified:

	12/04/2014
	
Description:

	Client scripts that should execute after respawn.
	
______________________________________________________

_null = [] execVM "scripts\admin_uid.sqf";					// Admin spectate */

[(_this select 0),loadout] spawn setLoadout;

sleep 1;
if (PARAMS_ReviveEnabled == 1) then {
	[(_this select 0)] execVM (TCB_AIS_PATH+"init_ais.sqf");
	(_this select 0) setVariable ["tcb_ais_agony", nil, true];
};

if (!isServer) then {
	adminrequest = _this select 0;
	publicVariable "adminrequest";
};

[[(_this select 0)],"SXP_fnc_addEditableObject",false,false] call BIS_fnc_MP;

_null = [] execVM "scripts\admin\init_actionMenu.sqf";